package mirrormonkey.rpc.messages;

import com.jme3.network.Message;
import com.jme3.network.serializing.Serializable;

@Serializable
public class RpcResultMessage implements Message {

	public int callId;

	public Object result;

	public boolean reliable;

	public RpcResultMessage() {
	}

	public RpcResultMessage(int callId, Object result, boolean reliable) {
		this.callId = callId;
		this.result = result;
		this.reliable = reliable;
	}

	@Override
	public boolean isReliable() {
		return reliable;
	}

	@Override
	public Message setReliable(boolean reliable) {
		this.reliable = reliable;
		return this;
	}
}
